<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="/WEB-INF/jsp/include/easyui.jsp" %>
<%@ include file="/WEB-INF/jsp/include/pForm.jsp" %>
<%@ include file="/WEB-INF/jsp/include/easyui-layui-upload.jsp" %>
<script src="/plug-in/jquery-easyui-1.5.1/plugins/jquery.choosebox.js"></script>
<title>立项施工信息编辑</title>
<script>
$(function(){
	fn.resetForm();
});

/**
 * 施工单位选择后施工负责人及电话级联
 */
function workUnitSelect(record){
	fn.loadData({workManagerPhone:record.linkPhone || '',workManager:record.linkMan || ''});
};

function supervisorUnitSelect(record){
	fn.loadData({supervisorPhone:record.linkPhone || '',supervisorName:record.linkMan || ''});
}
</script>
</script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/com.fs.jzzn.pojo.Information/modify">
		 <!--类名属性及默认主键id-->
		 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Information" />
		 <input type="hidden" name="id" value="" />
		 <input type="hidden" name="createrId" value="${SESSION_USER.user.id}" />
		 <input type="hidden" name="orgNo" value="" />
		 <input type="hidden" name="department" value="" />
		 <!--类名属性及默认主键id-->
		  <div style="margin-bottom:20px"> 
		 	<input class="easyui-textbox" name="pNo" style="width:240px;"   data-options="label:'路段编号:',required:true" readonly="readonly"/>
		 	<input class="easyui-choosebox easyui-validatebox" name="subcontract" style="width:240px;"   data-options="label:'分包合同:',boxWidth:900,boxHeight:400,boxTitle:'选择分包合同',textField:'contractNo',valueField:'contractNo',modleName:'subcontract',required:false "/>
		 	<input class="easyui-textbox easyui-validatebox" name="dataManager" style="width:240px;" data-options="label:'资料员:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		  <select class="easyui-combobox" name="workUnit" style="width:240px;" data-options="label:'施工单位:',required:true,onSelect:workUnitSelect" 
				url="/console/combobox?valueField=name&textField=name&modleName=assistUnit&type=unit_sgdw&type_searchType=eq&attributes=linkMan,linkPhone" >
		 	</select>
		  	<input class="easyui-textbox easyui-validatebox" name="workManager" style="width:240px;" data-options="label:'施工负责人:',required:false" />
		  	<input class="easyui-textbox easyui-validatebox" name="workManagerPhone" style="width:240px;" data-options="label:'负责人电话:',required:false,validType:'mobile'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  	<input class="easyui-datebox easyui-validatebox" name="startDate" style="width:240px;" data-options="label:'开工时间:'" />
		  	<input class="easyui-datebox easyui-validatebox" name="endDate" style="width:240px;" data-options="label:'完工时间:'" />
		  	<input class="easyui-datebox easyui-validatebox" name="checkDate" style="width:240px;" data-options="label:'验收时间:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		  	<select class="easyui-combobox" name="supervisorUnit" style="width:240px;" data-options="label:'监理单位:',required:false,onSelect:supervisorUnitSelect" 
				url="/console/combobox?valueField=name&textField=name&modleName=assistUnit&type=unit_jldw&type_searchType=eq&attributes=linkMan,linkPhone" >
		 	</select>
		  	<input class="easyui-textbox easyui-validatebox" name="supervisorName" style="width:240px;" data-options="label:'监理人:'" />
		  	<input class="easyui-textbox easyui-validatebox" name="supervisorPhone" style="width:240px;" data-options="label:'监理电话:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-numberbox easyui-validatebox" name="workDays" style="width:240px;" data-options="label:'工期（天）:'" />
		 	<input class="easyui-textbox easyui-validatebox" name="workDesc" style="width:240px;" data-options="label:'工作量描述:'" />
		    <input class="easyui-textbox easyui-validatebox" name="url" style="width:240px;" data-options="label:'云链接:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-numberbox easyui-validatebox" name="opticCableCores" style="width:240px;" data-options="label:'实际芯数:'" />
		 	<input class="easyui-numberbox easyui-validatebox" name="opticCableLength" style="width:240px;" data-options="label:'实际长度:'" />
		  	<input class="easyui-textbox easyui-validatebox" name="remark" multiline="true" style="width:240px;height:40px;" data-options="label:'备注:',required:false,validType:'length[0,500]'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-layuiupload" name="attachment" style="width:760px;" data-options="label:'附件:',upload:{auto:false,height:150}" />
		 </div>
		</form>
	</div>
</body>
</html>